package cn.wolfcode.demo.controller;


import cn.wolfcode.demo.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @Autowired
    private IUserService userService;

    @RequestMapping("/login")
    public String login(String username,String password){
                userService.login(username,password);
            return "登陆成功";
        }

}
